import fetch from './fetch'

export default {
    UploadVideo,
    VideoType,
    getCryptoSignKey,
    getCryptoClient,
    OcrCardFront,
}
//解析视频
function UploadVideo(options){
    return fetch({
        method:'post',
        path:'/web-api/infra/file/videoUpload',
        params:options
    });
}

// 获取加密偏移量和密钥
function getCryptoSignKey(options) {
    return fetch({ method: 'get', path: '/web-api/infra/file/signKey', params: options });
}

// 获取加密 client
function getCryptoClient(options) {
    return fetch({ method: 'get', path: '/web-api/infra/file/signParam', params: options });
}

//返回类型
function VideoType(options){
    return fetch({
        method:'get',
        path:'/web-api/system/dict-data/type',
        params:options
    });
}
//ocr识别
function OcrCardFront(options){
    return fetch({
        method:'post',
        path:'/web-api/member/ocr/ocrCardFront',
        params:options
    });
}